package com.company.enumdemo;

import java.util.Arrays;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        System.out.println((FlagEnum.One.getValue() | FlagEnum.Three.getValue()));
        Short s = 333;
        int a = 5;
        List<Integer> list = Arrays.asList(1, 2, 4, 8);
        for (Integer item : list) {
            System.out.println((item | a) == a);
        }
        for (Integer item : list) {
            System.out.println((a |= item));
        }
    }

}
